//
//  YCShareActionSheetViewController.m
//  DemoActionSheet
//
//  Created by tangkexiong on 16/3/8.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "YCShareActionSheetViewController.h"

#import "YCShareActionSheet.h"

@interface YCShareActionSheetViewController ()<YCShareActionSheetDelegate>

@end

@implementation YCShareActionSheetViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (IBAction)shareBtnClicked:(id)sender {
    NSMutableArray *functionArray = [[NSMutableArray alloc] init];
    
    YCShareActionSheetItem *item1 = [[YCShareActionSheetItem alloc] init];
    item1.mName = @"新浪微博";
    item1.mImg = @"share_weibo_sina";
    [functionArray addObject:item1];
    
    YCShareActionSheetItem *item2 = [[YCShareActionSheetItem alloc] init];
    item2.mName = @"腾讯微博";
    item2.mImg = @"share_weibo_tencent";
    [functionArray addObject:item2];
    
    YCShareActionSheetItem *item3 = [[YCShareActionSheetItem alloc] init];
    item3.mName = @"QQ";
    item3.mImg = @"share_QQ";
    [functionArray addObject:item3];
    
    YCShareActionSheetItem *item4 = [[YCShareActionSheetItem alloc] init];
    item4.mName = @"QQ空间";
    item4.mImg = @"share_QQZone";
    [functionArray addObject:item4];
    
    YCShareActionSheetItem *item5 = [[YCShareActionSheetItem alloc] init];
    item5.mName = @"微信好友";
    item5.mImg = @"share_weixin_friend";
    [functionArray addObject:item5];
    
    YCShareActionSheetItem *item6 = [[YCShareActionSheetItem alloc] init];
    item6.mName = @"微信朋友圈";
    item6.mImg = @"share_weixin_circle";
    [functionArray addObject:item6];
    
    YCShareActionSheetItem *item7 = [[YCShareActionSheetItem alloc] init];
    item7.mName = @"微信朋友圈";
    item7.mImg = @"share_weixin_circle";
    [functionArray addObject:item7];
    
    YCShareActionSheetItem *item8 = [[YCShareActionSheetItem alloc] init];
    item8.mName = @"微信朋友圈";
    item8.mImg = @"share_weixin_circle";
    [functionArray addObject:item8];
    
    YCShareActionSheetItem *item9 = [[YCShareActionSheetItem alloc] init];
    item9.mName = @"微信朋友圈";
    item9.mImg = @"share_weixin_circle";
    [functionArray addObject:item9];
    
    YCShareActionSheet *sheet = [YCShareActionSheet instanceWithTitle:@"哈哈" shareItems:functionArray delegate:self];
    
    [sheet show];
    
}

@end
